package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Param;import org.tgcloud.group.entity.MjUserOrderGood;
import org.tgcloud.group.web.controller.dto.file.GoodOrderDTO;
import org.tgcloud.group.web.controller.dto.order.ChannelGoodPriceList;import org.tgcloud.group.web.controller.req.order.GoodPriceReq;import java.util.List;

public interface MjUserOrderGoodMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MjUserOrderGood record);

    int insertSelective(MjUserOrderGood record);

    MjUserOrderGood selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MjUserOrderGood record);

    int updateByPrimaryKey(MjUserOrderGood record);

    int insertBatch(@Param("goodList") List<GoodPriceReq> goodList, @Param("userOrderId") Integer id);

    List<ChannelGoodPriceList> selectListByUserOrderId(@Param("userOrderId") Integer userOrderId);

    int updateStatusByUserOrderId(@Param("userOrderId") Integer id);

    List<MjUserOrderGood> selectMsgListByUserOrderId(@Param("userOrderId") Integer id);

    List<GoodOrderDTO> selectGoodListByUserOrderId(@Param("userOrderId") Integer id);

    int updateNumByGoodIdAndSkuId(@Param("goodId") Integer goodId,@Param("skuId") Integer skuId,@Param("num") Integer num);
}
